<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
 <!-- <script src="../static/umd/index.js"></script> -->
 <!-- <script src="../static/umd/index.d.ts"></script> -->
 <script src="./testhc.js" type="module"></script>
</head>
<body>
  <button onclick=" openFull()">openFull</button>
  <button onclick=" isFull()">isFull</button>
  <button onclick=" getFullEl()">getFullEl</button>
  <button onclick=" exitFull()">exitFull</button>
  <button onclick=" toggleFull()">toggleFull</button>
  <button onclick=" isFullEnabled()">isFullEnabled</button>
  <div id="kkk" style="margin-top: 40px; width: 100%;height: 100px;background-color: red;">
    <button onclick=" openFull()">openFull</button>
  <button onclick=" isFull()">isFull</button>
  <button onclick=" getFullEl()">getFullEl</button>
  <button onclick=" exitFull()">exitFull</button>
  <button onclick=" toggleFull()">toggleFull</button>
  <button onclick=" isFullEnabled()">isFullEnabled</button>
    元素全屏
  </div>
  <div style="height:8000px ; width: 100%; background-color: aquamarine;">22</div>
  <button onclick="backTop()">backtop</button>
  <script>  
    // console.log(this._tj)
    // const tj = this._tj 
    // // tj.openFull()scrollProgressBar, scrollBackTop
    // function backTop () {
    //   tj.scrollBackTop(0.3,10)
    // }

    // document.addEventListener('scroll',function(){
      
    //   console.log(tj.scrollProgressBar())
    // })
    
    // function openFull () {
    //   tj.openFull(document.getElementById('kkk'),{navigationUI:'show'})
    // }
    // function isFull () {
    //   console.log('isfull',tj.isFull())
    // }

    // function getFullEl () {
    //   console.log('getFullEl',tj.getFullEl())
    // }

    // function exitFull () {
    //   tj.closeFull()
    // }

    // function toggleFull () {
    //   tj.toggleFull()
    // }
    // function isFullEnabled() {
    //   console.log('isFullEnabled',tj.isFullEnabled())
    // }
    // isFull()
    // exitFull()
    // toggleFull()
    // getFullEl()
    // isFullEnabled()




    // const tCookie = this._tj.newStorage('session',{prefix:'ddd'})
    // console.log(tCookie)
    // tCookie.setFun('key55',{a:'6666'})
    // tCookie.setFun('key',{obj:'test setFun'})
    // tCookie.setFun('key556',)
    // console.log(tCookie.existFun('key55'))
    // setTimeout(() => {
    //   let a = tCookie.getFun('key556')
    //   console.log(a,typeof a)
    // }, 500);
    
    // setTimeout(()=>{
    //   console.log(tCookie.existFun('key55'))
    // },1001)
    // console.log(tCookie.getFun('555',{prefix:''}))

    // console.log(tCookie.allKey())
    // console.log(tCookie.clearFun())
    // console.log(tCookie.allKey())
  </script>
</body>
</html>